package com.example.petwar;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MenuActivity extends Activity {

	private Button btnAbout;
	private Button btnHelp;
	private Button btnExit;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu);
		
		btnAbout = (Button) findViewById(R.id.btn_about);
		btnAbout.setOnClickListener(new OnClickListener() {

			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MenuActivity.this, AboutActivity.class);
				startActivity(intent);
			}
		});
		
		btnHelp = (Button) findViewById(R.id.btn_help);
		btnHelp.setOnClickListener(new OnClickListener() {

			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MenuActivity.this, HelpActivity.class);
				startActivity(intent);
			}
		});
	
		btnExit = (Button) findViewById(R.id.btn_exitgame);
		btnExit.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.menu, menu);
		return true;
	}

}
